import { DEFAULT_ROUTE_NAME } from '@/router/constants';
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/dashboard',
  name: 'dashboard',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '仪表盘',
    requiresAuth: true,
    icon: 'icon-dashboard',
    order: 0,
  },
  children: [
    {
      path: 'workplace',
      name: DEFAULT_ROUTE_NAME,
      component: () => import('@/views/dashboard/workplace/index.vue'),
      meta: {
        locale: '工作台',
      },
    },
    {
      path: 'monitor',
      name: 'monitor',
      component: () => import('@/views/dashboard/monitor/index.vue'),
      meta: {
        locale: '演示一',
      },
    },
    {
      path: 'demonstrate',
      name: 'demonstrate',
      component: () => import('@/views/dashboard/demonstrate/index.vue'),
      meta: {
        locale: '演示二',
      },
    },
    {
      path: 'analysis',
      name: 'analysis',
      component: () => import('@/views/dashboard/analysis/index.vue'),
      meta: {
        locale: '演示三',
      },
    },
  ],
};

export default DASHBOARD;
